﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Talentnet.Core.Utilities;
using System.Data;
namespace Talentnet.Data.Entity
{
    public class LoginUser
    {

        #region RecId Property
        public Guid RecId
        {
            get;
            set;
        }
        #endregion

        #region ClientID Property
        public Int32 ClientID
        {
            get;
            set;
        }
        #endregion

        #region LoginName Property
        public String LoginName
        {
            get;
            set;
        }
        #endregion

        #region UserNameFirst Property
        public String UserNameFirst
        {
            get;
            set;
        }
        #endregion

        #region UserNameLast Property
        public String UserNameLast
        {
            get;
            set;
        }
        #endregion

        #region UserPassword Property
        public String UserPassword
        {
            get;
            set;
        }
        #endregion

        #region UserPasswordType Property
        public Int32 UserPasswordType
        {
            get;
            set;
        }
        #endregion

        #region UserPasswordDTS Property
        public DateTime UserPasswordDTS
        {
            get;
            set;
        }
        #endregion

        #region UserPasswordTmp Property
        public String UserPasswordTmp
        {
            get;
            set;
        }
        #endregion

        #region LoginAttempts Property
        public Int32 LoginAttempts
        {
            get;
            set;
        }
        #endregion

        #region LastLoginDTS Property
        public DateTime LastLoginDTS
        {
            get;
            set;
        }
        #endregion

        #region PrevLoginDTS Property
        public DateTime PrevLoginDTS
        {
            get;
            set;
        }
        #endregion

        #region Status Property
        public Byte Status
        {
            get;
            set;
        }
        #endregion

        #region CreatedDTS Property
        public DateTime CreatedDTS
        {
            get;
            set;
        }
        #endregion

        #region UpdatedDTS Property
        public DateTime UpdatedDTS
        {
            get;
            set;
        }
        #endregion

        #region Email Property
        public String Email
        {
            get;
            set;
        }
        #endregion

        #region ThemeId Property
        public Int32 ThemeId
        {
            get;
            set;
        }
        #endregion

        #region CreatedBy Property
        public Guid CreatedBy
        {
            get;
            set;
        }
        #endregion

        #region OldPwds Property
        public String OldPwds
        {
            get;
            set;
        }
        #endregion


        

        #region CreateEntity Method
        public static LoginUser CreateEntity(DataRow row)
        {
            return row.GetEntity<LoginUser>();
        }
        public static LoginUser CreateEntity(IDataReader reader)
        {
            return reader.GetEntity<LoginUser>();
        }
        public static List<LoginUser> CreateEntities(DataTable dt)
        {
            return dt.GetEntities<LoginUser>();
        }
        #endregion
    }
}
